package com.example.teacherservice.dto;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.sql.Timestamp;

@Data
public class StudentPracticeDTO {
    private Long id;
    private Long practiceId;
    private String practiceName;
    private String teacherName;
    private String courseName;
    private String location;
    private Timestamp startTime;
    private Timestamp endTime;
    private Integer status;
    private Timestamp joinTime;

    public StudentPracticeDTO(Long id, Long practiceId, String practiceName,
                              String teacherName, String courseName, String location,
                              Timestamp startTime, Timestamp endTime,
                              Integer status, Timestamp joinTime) {
        this.id = id;
        this.practiceId = practiceId;
        this.practiceName = practiceName; // 确保这个参数对应p.name
        this.teacherName = teacherName;
        this.courseName = courseName;
        this.location = location;
        this.startTime = startTime;
        this.endTime = endTime;
        this.status = status;
        this.joinTime = joinTime;
    }
}
